package sctu.edu.java.year2016.team03.zhaoyong.day20160520.chapter3_2;

/**
 * Created by zhaoyong on 2016/5/22.
 * 编写一个Java程序，声明两个int型变量，运用三元运算符判断两个变量是否相等，若不相等，求出两个数中较大的
 */
public class compare {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        if (a == b)
            System.out.println("a 与b相等");
        else
            System.out.println("两者最大值是：" + (a > b ? a : b));
    }
}
